package org.spring.springboot.app.user.sysuser.domain.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.spring.springboot.app.sys.role.domain.vo.SysRoleAddUserVO;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;


@ApiModel(description="接收参数")
public class SysUserAddVO implements Serializable {
    private static final long serialVersionUID = -1L;

    @ApiModelProperty(value = "用户id", hidden = false)
    private String id;

    @ApiModelProperty(value = "公司id",hidden = false)
    private String companyId;

    @ApiModelProperty(value = "机构id",hidden = false)
    private String officeId;

    @ApiModelProperty(value = "登录名",hidden = false)
    @NotNull(message = "登录名不能为空")
    private String loginName;

    @ApiModelProperty(value = "密码",hidden = false)
    @NotNull(message = "密码不能为空")
    private String password;

    @ApiModelProperty(value = "编号",hidden = false)
    private String no;

    @ApiModelProperty(value = "姓名",hidden = false)
    @NotNull(message = "姓名不能为空")
    private String name;

    @ApiModelProperty(value = "邮编",hidden = false)
    private String email;

    @ApiModelProperty(value = "电话",hidden = false)
    private String phone;

    @ApiModelProperty(value = "手机",hidden = false)
    private String mobile;

    @ApiModelProperty(value = "用户类型",hidden = false)
    private String userType;

    @ApiModelProperty(value = "头像",hidden = false)
    private String photo;

    @ApiModelProperty(value = "是否允许登录",hidden = false)
    private String loginFlag;

    @ApiModelProperty(value = "用户角色",hidden = false)
    private List<SysRoleAddUserVO> roles;



    public String getId() {  return id;}

    public void setId(String id) { this.id = id == null ? null : id.trim();}

    public String getCompanyId() {
        return companyId;
    }

    public String getOfficeId() {
        return officeId;
    }

    public String getLoginName() {
        return loginName;
    }

    public String getPassword() {
        return password;
    }

    public String getNo() {
        return no;
    }

    public String getName() {
        return name;
    }

    public String getEmail() {
        return email;
    }

    public String getPhone() {
        return phone;
    }

    public String getMobile() {
        return mobile;
    }

    public String getUserType() {
        return userType;
    }

    public String getPhoto() {
        return photo;
    }

    public String getLoginFlag() {
        return loginFlag;
    }

    public List<SysRoleAddUserVO> getRoles() {
        return roles;
    }

    public void setOfficeId(String officeId) {
        this.officeId = officeId;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public void setNo(String no) {
        this.no = no;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public void setUserType(String userType) {
        this.userType = userType;
    }

    public void setPhoto(String photo) {
        this.photo = photo;
    }

    public void setLoginFlag(String loginFlag) {
        this.loginFlag = loginFlag;
    }

    public void setRoles(List<SysRoleAddUserVO> roles) {
        this.roles = roles;
    }
}
